/*    */ package com.newcrm.webapi;
/*    */ 
/*    */ import com.newcrm.thread.BackgroundThreadManager;
/*    */ import javax.servlet.ServletContext;
/*    */ import javax.servlet.ServletException;
/*    */ import javax.servlet.http.HttpServlet;
/*    */ import org.apache.log4j.Logger;
/*    */ 
/*    */ public class BackgroundServlet extends HttpServlet
/*    */ {
/* 18 */   private static Logger logger = Logger.getLogger(BackgroundServlet.class
/* 19 */     .getName());
/*    */   private static final long serialVersionUID = 2819563392374451861L;
/* 23 */   private BackgroundThreadManager threadManager = null;
/*    */ 
/*    */   public void destroy()
/*    */   {
/* 29 */     if (this.threadManager != null) {
/* 30 */       this.threadManager.stop();
/*    */     }
/*    */ 
/* 33 */     logger.info("end background servlet");
/*    */   }
/*    */ 
/*    */   public void init()
/*    */     throws ServletException
/*    */   {
/* 43 */     logger.info("start background servlet");
/* 44 */     this.threadManager = 
/* 45 */       BackgroundThreadManager.getInstance(getServletContext().getRealPath(""));
/* 46 */     this.threadManager.start();
/*    */   }
/*    */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.BackgroundServlet
 * JD-Core Version:    0.6.1
 */